package com.xinqi.modules.chat.chat.chat.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.xinqi.common.mybatis.data.entity.SuperEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;


/**
 * 实体层
 *
 * @author: yyzhen
 * @date: 2023/03/29
 */
@Setter
@Getter
@TableName("ca_chat_tran_record")
public class ChatTranRecordEntity extends SuperEntity {
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 会话ID
     */
    @TableField(value = "target_id")
    private String targetId;
    /**
     * 类型 1私聊  3群聊
     */
    @TableField(value = "type")
    private Integer type;
    /**
     * 创建时间（单位：毫秒）
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
